<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>ng-cloak 解决闪屏问题</title>
    <style>
        .ng-cloak{
            display: none;
        }
    </style>
</head>
<body ng-app="goods" class="ng-cloak">
    <div ng-controller="ctrl">
       商品： {{goods.data.name}} <br />
        价格： {{goods.data.price}} <br />
        数量： {{goods.data.num}}
    </div>

    <script src="../angular.js"></script>
    <script>
        var mod = angular.module('goods', []);
        mod.controller('ctrl', ['$scope', function ($scope) {
            $scope.goods = {
                data: {'name': '小米6', 'price': '2499', 'num': 5}
            }
        }])
    </script>
</body>
</html>